<?php
	include_once 'function.php';
	include_once 'autoConndb.php';
	
	$outdb = readConfig('outdb_config.ini');
	$indb = readConfig('indb_config.ini');

	$conn_out = autoConn::getInstance($outdb);
	$conn_in = autoConn::getInstance($indb);
	
//	$row = $conn_out->getTableCol();
//
//	foreach($row as $v){
//		
//	}
//	var_dump($v);
//	exit;
//

	$sql_out = "select * from ccc";
	$out = $conn_out->query($sql_out);
	
	foreach ($out as $v){
		$sel['R_NAME'] = trim($v['ILL_NAME']);
		echo $sel['R_NAME'].'_'.strlen($sel['R_NAME']).' ';
		$sel['R_DESC'] = $v['ILL_DESP'];
		$sel['R_CF'] = $v['ILL_CF'];
//		$sql_in = "insert into recipel values(".$v['ID'].",'".$v['ILL_NAME']."','".$v['ILL_DESP']."','".$v['ILL_CF']."')"; 
		//$conn_in->create('recipel',$sel,'R_ID');
	}

?>